import { GTable } from 'geminis-react';

export default () => {
  const schema = {
    headerTitle: '模板信息',
    data: {
      url: '/api/cost/workflow/workflowTemplate',
      sort: 'name:asc',
    },
    action: {
      toolbar: {
        add: {
          form: {
            schemaPath: '/cost-pc/schema/workflow/template/edit.json',
          },
        },
      },
      row: {
        edit: true,
        delete: true,
      },
    },
  };

  return <GTable
    schema={schema}
    schemaPath="/cost-pc/schema/workflow/template/table.json"
  />;
};
